import request from '@/utils/request'

export function getTreeList(data) {
  return request({
    url: '/publicCatalog/getTreeList',
    method: 'post',
    params: data
  })
}

export function saveData(data) {
  return request({
    url: '/publicCatalog/save',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/publicCatalog/edit',
    method: 'post',
    data
  })
}

export function disabled(data) {
  return request({
    url: '/publicCatalog/deleteInLogic',
    method: 'post',
    params: data
  })
}

export function getInfo(data) {
  return request({
    url: '/publicCatalog/getInfo',
    method: 'get',
    params: data
  })
}

export function getAllLeafNode(data) {
  return request({
    url: '/publicCatalog/getAllLeafNode',
    method: 'get',
    params: data
  })
}

export function getTreeList1(data) {
  return request({
    url: '/publicCatalog/getTreeList1',
    method: 'post',
    params: data
  })
}

export function getTreeListInAuthority(data) {
  return request({
    url: '/publicCatalog/getTreeListInAuthority',
    method: 'post',
    params: data
  })
}

export function getTreeList2(data) {
  return request({
    url: '/publicCatalog/getTreeList2',
    method: 'post',
    params: data
  })
}

export function getTreePersonalList(data) {
  return request({
    url: '/publicCatalog/getTreePersonalList',
    method: 'post',
    params: data
  })
}

export function copyCatalog(data) {
  return request({
    url: '/publicCatalog/copy',
    method: 'post',
    data
  })
}

export function moveCatalog(data) {
  return request({
    url: '/publicCatalog/move',
    method: 'post',
    data
  })
}

export function deleteInLogic(data) {
  return request({
    url: '/publicCatalog/deleteInLogic',
    method: 'post',
    params: data
  })
}

export function deleteAllInCatalogOrFile(data) {
  return request({
    url: '/publicCatalog/deleteAllInCatalogOrFile',
    method: 'post',
    params: data
  })
}

export function getInitialLoading(data) {
  return request({
    url: '/publicCatalog/getInitialLoading',
    method: 'post',
    params: data
  })
}

export function getAgainLoading(data) {
  return request({
    url: '/publicCatalog/getAgainLoading',
    method: 'post',
    params: data
  })
}
